/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.diogenesistemas.dinggle.model.entity;

import java.io.Serializable;

/**
 *
 * @author Diógenes
 */
public class Conta implements Serializable{
    
    private Integer Id;
    private String email; 
    private String senha;
    private String telefoneMovel;
    private Usuario usuario;

    public Conta() {
    }

    public Conta(String email, String senha, String telefoneMovel) {
        this.email = email;
        this.senha = senha;
        this.telefoneMovel = telefoneMovel;
    }
    

    public Integer getId() {
        return Id;
    }

    public void setId(Integer Id) {
        this.Id = Id;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getSenha() {
        return senha;
    }

    public void setSenha(String senha) {
        this.senha = senha;
    }

    public String getTelefoneMovel() {
        return telefoneMovel;
    }

    public void setTelefoneMovel(String telefoneMovel) {
        this.telefoneMovel = telefoneMovel;
    }

    public Usuario getUsuario() {
        return usuario;
    }

    public void setUsuario(Usuario usuario) {
        this.usuario = usuario;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 89 * hash + (this.Id != null ? this.Id.hashCode() : 0);
        hash = 89 * hash + (this.email != null ? this.email.hashCode() : 0);
        hash = 89 * hash + (this.senha != null ? this.senha.hashCode() : 0);
        hash = 89 * hash + (this.telefoneMovel != null ? this.telefoneMovel.hashCode() : 0);
        hash = 89 * hash + (this.usuario != null ? this.usuario.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Conta other = (Conta) obj;
        if (this.Id != other.Id && (this.Id == null || !this.Id.equals(other.Id))) {
            return false;
        }
        if ((this.email == null) ? (other.email != null) : !this.email.equals(other.email)) {
            return false;
        }
        if ((this.senha == null) ? (other.senha != null) : !this.senha.equals(other.senha)) {
            return false;
        }
        if ((this.telefoneMovel == null) ? (other.telefoneMovel != null) : !this.telefoneMovel.equals(other.telefoneMovel)) {
            return false;
        }
        if (this.usuario != other.usuario && (this.usuario == null || !this.usuario.equals(other.usuario))) {
            return false;
        }
        return true;
    }
    
    
    
}
